<?php
/**
 * Remove a document from a ressource
 * 
 * @author	Xavier VILAIN
 * @package Contact\Interview
 * @license #hive-contact#
 */
use Fox\Behaviors;
use Hive\Ressource;
use Fox\Generator;
use Fox\Popup\ToConfirm\Deletion;
$xview = Xview::instance();

if(!Fox\Authorization\Manager::check(Hive\Admin\Customizing::AUTH_MISSION_BOARDS)) {
	echo $xview->accessDenied(Msg(Hive::BUNDLE,Hive::ERR_ADMIN_ACCES_DENIED),null,true);
	exit;
}
$popup = new Deletion(null,
			Hive\Mission\Job\Board::className(),			
			null,
			array(Hive::BUNDLE,Hive::MISSION_JOB_BOARD_DELETE_CONFIRMATION),
			null
			,Generator::ajaxReload('contentCol')
			);
echo $popup->render();